//
//  ZYThirdLoginInfo.m
//  SuiTong
//
//  Created by 石志愿 on 2020/9/3.
//  Copyright © 2020 石志愿. All rights reserved.
//

#import "ZYThirdShareInfo.h"

@implementation ZYThirdShareInfo

@end

@implementation ZYThirdSharePlatformInfo

- (instancetype)initWithPlatform:(ZYSharePlatform)platform
{
    self = [super init];
    if (self) {
        self.platform = platform;
        [self configureIcon];
    }
    return self;
}

- (void)configureIcon {
    switch (self.platform) {
        case ZYSharePlatformQQ:
            self.icon = @"share_QQ_normal";
            self.title = @"QQ";
            break;
        case ZYSharePlatformQzone:
            self.icon = @"share_qzone_normal";
            self.title = @"QQ空间";
            break;
        case ZYSharePlatformWXSession:
            self.icon = @"share_wxSession_normal";
            self.title = @"微信";
            break;
        case ZYSharePlatformWXTimeline:
            self.icon = @"share_wxTimeline_normal";
            self.title = @"朋友圈";
            break;
        case ZYSharePlatformWeiBo:
            self.icon = @"share_weiBo_normal";
            self.title = @"微博";
            break;
        case ZYSharePlatformCopylink:
            self.icon = @"share_copylink_normal";
            self.title = @"复制链接";
            break;
        default:
            break;
    }
}

@end

@implementation ZYThirdLoginInfo

@end

@implementation ZYThirdLoginItem

- (instancetype)initWithPlatform:(ZYThirdLoginPlatform)platform
{
    self = [super init];
    if (self) {
        self.platform = platform;
        [self configureIcon];
    }
    return self;
}

- (void)configureIcon {
    switch (self.platform) {
        case ZYThirdLoginPlatformQQ:
            self.icon = @"login_third_QQ";
            break;
        case ZYThirdLoginPlatformWeChat:
            self.icon = @"login_third_weChat";
            break;
            case ZYThirdLoginPlatformWeiBo:
            self.icon = @"login_third_weiBo";
            break;
            case ZYThirdLoginPlatformApple:
            self.icon = @"login_third_apple";
            break;
            
        default:
            break;
    }
}

@end
